<h:layout tpl="_layout"/>

<style type="text/css">
.list {margin:0px; padding:0px}
.list li { float:left; margin-right:10px; list-style:none }
</style>

<ul class="list">
	<li><a href="<h:url action=index/>"><strong>已安装模块</strong></a></li>
	<li><a href="<h:url action=create/>">创建新模块</a></li>
</ul>

<div style="clear:both;height:10"></div>
<table width="680" bgcolor="#cccccc" cellpadding="1" cellspacing="2">
	<tr>
		<th width="100">模块名</th>
		<th width="100">版本</th>
		<th width="100">作者</th>
		<th>位置</th>
		<th>删</th>
	</tr>
	<c:foreach from=$modules item=module key=code>
	<tr bgcolor="#ffffff">
		<td align="center">{{$module.name}}</td>
		<td align="center">{{$module.version}}</td>
		<td align="center">{{$module.author}}</td>
		<td>{{$module.dir}}</td>
		<td align="center">
			<c:if strstr($module.dir, "modules")>
			<a href="<h:url action=delete name=$code/>" onclick="return window.confirm('你确定要删除该模块吗？不可恢复的哦！')">删</a>
			</c:if>
		</td>
	</tr>
	</c:foreach>
</table>